from collections import deque

s = [input(),input()]
n = len(s[0])
